package cn.zhiwen.invocationproxy;

import cn.zhiwen.proxydemo.UserManager;
import cn.zhiwen.proxydemo.UserManagerImpl;

public class ProxyImpl {

    public static void main(String[] args) {
        InvocationProxy invocationProxy = new InvocationProxy();
        UserManager userManager = (UserManager)invocationProxy.newProxyInstance(new UserManagerImpl());
        userManager.addUser("8888888","wuzhiwen");
    }
    
}
